/*
 * #%L
 * InterfaceAPI
 * %%
 * Copyright (C) 2011 Ractoc.com
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package com.ractoc.opengamefinder.api.messages;

import com.ractoc.opengamefinder.api.vo.AccountVO;

/**
 * This message tells other players that a player has left the room.
 * @author ractoc
 * @version 0.1
 */
public final class ChatLeaveRoomMessage extends ChatMessage {
    private AccountVO account;

    private boolean outbound;
    
    /**
     * Default constructor.
     */
    public ChatLeaveRoomMessage() {
    }

    /**
     * Set the account data of the player leaving the room.
     * @param accountParam The account data of the player leaving the room.
     */
    public void setAccount(final AccountVO accountParam) {
        this.account = accountParam;
    }

    /**
     * Get the account data of the player leaving the room.
     * @return The account data of the player leaving the room.
     */
    public AccountVO getAccount() {
        return account;
    }

    /**
     * Is this an outbound message?
     * @param outboundParam Is this an outbound message?
     */
    public void setOutbound(final boolean outboundParam) {
        this.outbound = outboundParam;
    }

    /**
     * Is this an outbound message?
     * @return Is this an outbound message?
     */
    public boolean isOutbound() {
        return outbound;
    }
}
